package com.force.module.mcpclient.tools.impl;

import com.force.module.mcpclient.tools.IMcpTools;
import org.springframework.ai.tool.annotation.Tool;
import org.springframework.context.i18n.LocaleContextHolder;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;

@Service
public class DateTimeMcpToolService implements IMcpTools {

	@Tool(description = "获取当前用户所在的时区时间")
	public String getCurrentDateTime() {
		return LocalDateTime.now().atZone(LocaleContextHolder.getTimeZone().toZoneId()).toString();
	}

}
